package v2

import (
	"database/sql"
	"github.com/stretchr/testify/suite"
)

type sqlTestSuite struct {
	suite.Suite
	// 配置字段
	driver string
	dsn    string
	db     *sql.DB
}

func (s *sqlTestSuite) TearDownTest() {
	_, err := s.db.Exec("DELETE FROM test_model;")
	if err != nil {
		s.T().Fatal(err)
	}
}

type TestModel struct {
	Id        int64
	FirstName string
	Age       int8
	LastName  *sql.NullString
}
